const express = require('express');
const blockCtrl = require('../../app/controllers/block.server.controller.js');

module.exports = (app) => {
    const router = express.Router();

    router.route('/blockMerchantByMerchantId/:merchantId/:block')
        .post(blockCtrl.updateBlockStateByMerchantId);

    app.use('/block', router);
};